package com.yao.system.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "resume")
public class Resume {
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField(value = "user_id")
    private Long userId;
    @TableField(value = "user_name")
    private String userName;
    @TableField("name")
    private String name;
    @TableField("phone")
    private String phone;
    @TableField("school")
    private String school;
    private Integer age;
    @TableField("sex")
    private Integer sex;
    @TableField("content")
    private String content;//之后要去掉的字段
    @TableField("major")
    private String major;
    @TableField("email")
    private String email;
    @TableField("educational")
    private String educational;
    private String skill;
    private String evaluation;
    private Integer intention;
    private String project;
    private LocalDateTime enrollmentTime;
    private LocalDateTime graduationTime;
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
